﻿using System;
using System.ComponentModel;

namespace My_App.Model
{
    public enum TaskState
    { 
        New,
        Edit,
        Normal,
        Complited
    }

    public class Task : INotifyPropertyChanged
    {
        public string Name { get; set; }

        public string Description { get; set; }
        
        public TaskState State { get; set; }
        
        public bool IsSelected { get; set; }

        public event PropertyChangedEventHandler PropertyChanged;
        
        private void NotifyPropertyChanged(String propertyName)
        {
            PropertyChangedEventHandler handler = PropertyChanged;
            if (null != handler)
            {
                handler(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
